import request from '@/api/request'

// 品牌列表
export function getAllCategory(data) {
    return request({
      url: '/lejuAdmin/category/getAllCategory',
      method: 'get',
      data
    })
  }
  
  export function addCategory(data) {
    return request({
      url: '/lejuAdmin/category/addCategory',
      method: 'post',
      data
    })
  }

  export function delCategory(id) {
    return request({
      url: `/lejuAdmin/category/delCategory/${id}`,
      method: 'delete',
    })
  }
  
  export function updateCategory(data) {
    return request({
      url: '/lejuAdmin/category/updateCategory',
      method: 'post',
      data
    })
  }


  